class BDSeqAct_GetHeroCam extends SequenceAction;

var() Object Hero;
var() Vector camVector;
var() Rotator camRotation;

event Activated()
{
	local Camera cam;
	local BlackDeathHeroPawn BDHP;
	BDHP = BlackDeathHeroPawn(Hero);
	if(BDHP != none)
	{
		cam = PlayerController(BDHP.controller).PlayerCamera;
		camVector=BlackDeathCamera(cam).CurrentCamLocation;
		camRotation=BlackDeathCamera(cam).CurrentCamRotation;		
		`log("Cam vector is "@camVector);
		`log("Cam rotation is "@camRotation);
	}

	else
	{
		camVector=vect(0,0,0);
		camRotation=rot(0,0,0);
		`log("Node failed, pawn is not a hero pawn");
	}
}

defaultproperties
{
	bCallHandler=false
	ObjName="Get Hero Camera Data"	
	ObjCategory="Black Death Customs"
	
	InputLinks(0)=(LinkDesc="In")	
	
	VariableLinks.Empty
	VariableLinks(0)=(ExpectedType=class'SeqVar_Object',LinkDesc="Hero",PropertyName=Hero)
	VariableLinks(1)=(ExpectedType=class'SeqVar_Object',LinkDesc="camVector",bWriteable=True,PropertyName=camVector)
	VariableLinks(2)=(ExpectedType=class'SeqVar_Object',LinkDesc="camRotation",bWriteable=True,PropertyName=camRotation)
}